﻿
@{
    ViewBag.Title = "GetTestPartialView";
}

<h2>GetTestPartialView</h2>
<div class="well">
    <p>Html.RenderPartial</p>
    <div>
        @{
            Html.RenderPartial("~/Views/Shared/_PartialPanel.cshtml");
        }
    </div>
</div>
<div class="well">
    <p>Html.Partial</p>
    <div>@Html.Partial("~/Views/Shared/_PartialPanel.cshtml")</div>
</div>
<div class="well">
    <p>Html.RenderAction</p>
    <div>
        @{
            Html.RenderAction("GetPartialPanel");
        }
    </div>
</div>
<div class="well">
    <p>Html.Action</p>
    <div>@Html.Action("GetPartialPanel")</div>
</div>
<div class="well">
    <p>主页面时间</p>
    <div>@DateTime.Now</div>
</div>

<div class="well">
    <p>Html.Partial时间</p>
    <div>@Html.Partial("_PartialDateTime")</div>
</div>

<div class="well">
    <p>Html.Action时间</p>
    <div>@Html.Action("GetPartialDateTime")</div>
</div>